// degree, minute, second, latitude, longtitude
#include <iostream>

int main(void)
{
	using namespace std;
	float degree1, minute1, second1, latitude1;
	cout << "Enter a latitude in degrees, minutes, and seconds:";
	cout << "\nFist, enter ther degrees: ";
	cin >> degree1;
	cout << "Next, enter ther minutes of arc: ";
	cin >> minute1;
	cout << "Finally, enter ther seconds of arc: ";
	cin >> second1;

	latitude1 = degree1 + minute1 / 60 + second1 / (60 * 60);

	cout << degree1 << " degrees, " << minute1 << " minutes, "
	     << second1 << " seconds = " << latitude1 << " degrees."
	     << endl;

}